package com.zhenzhang.myblog.utils.validator.permission;

import com.zhenzhang.myblog.entity.role.UserRole;
public class ExcludeValidator implements PermissionValidator {
    private static final PermissionValidator validator = new IncludeValidator();
    @Override
    public boolean valid(UserRole input, UserRole[] candidate) {
        return !validator.valid(input, candidate);
    }
}
